#include<iostream>
#include<string.h> 
using namespace std;
class Student
{
    private:
        int age;
        char *name;
    public:
        static int count;
        Student(int m,char *n);
        Student();
        ~Student();
        void Print() const;	
};
int Student::count=0;
Student::Student(int m,char *n)
{
	age=m;
	name=n;
	count++;
}
Student::Student()
{
	name="NoName";
	age=0;
	count++;
}
Student::~Student()
{
	count--;
}
void Student::Print() const
{
	cout<<Student::count<<endl;
	cout<<"Name="<<name<<" , ";
	cout<<"age="<<age<<endl;
}
int main()
{
	cout<<"count="<<Student::count<<endl;
	Student s1,*p=new Student(23,"ZhangHong");
	s1.Print();
	p->Print();
	delete p;
	s1.Print();
	Student Stu[4];
	cout<<"count="<<Student::count<<endl;
	return 0;
}